uniform Material material;

varying vec4 position;
varying vec2 texcoord;
varying vec3 normal;
varying float far;

void main(){
	gl_FragColor=accumulate(material.ambient,phong(position,normal,material));
	gl_FragDepth=linearDepth(pPosition,pFar);
}
